<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <main id="app">
        <!-- 建议使用双标签，单标签可以但偶尔存在问题 -->
        <aa></aa>
    </main>
</body>
</html>
<script src="./vue-2.5.21.js"></script>
<script>
     var search = {
            template: `<div class="search">
                            <input type="text" placeholder="输入商品名称">
                        </div>`
        }
    var  v = new Vue({
        el:"#app",
        data:{},
        components:{
            'aa':search,
        }
    })
</script>